/*
 * @(#)ContentType.java $version 2012. 5. 4.
 *
 */

package com.mywep.myalimi.constant;

import com.mywep.myalimi.model.Engine;

/**
 * @author 한지웅
 */
public enum ContentType {
	BLOG("BLOG"), WEB("WEB"), COMMUNITY("COMMUNITY"), NEWS("NEWS"), ETC("ETC");
	private String contentType;

	ContentType(String contentType) {
		this.contentType = contentType;
	}

	public static ContentType getContentTypeByEngineType(String engineType) {
		if (Engine.EngineTypes.NAVER_NEWS.toString().equals(engineType)) {
			return NEWS;
		}
		return ETC;
	}

}
